package com.homework.adapter;

import org.springframework.beans.BeanUtils;

/**
 * @Author Zan
 * @Create 2024/6/24 8:04
 * @ClassName: TranslateVO
 * @Description : TODO 请用一句话描述该类的功能
 */
public class TranslateVO {
    public UserVO getUserVO(User user) {
        if (user == null) {
            return null;
        }
        UserVO userVO = new UserVO();
        BeanUtils.copyProperties(user, userVO);
        return userVO;
    }
}

